速報APP / 工具 / Simple Processor (Assembly)

Simple Processor (Assembly)

價格:免費

更新日期:2016-05-14

檔案大小:252k

目前版本:1.0

版本需求:Android 2.2 以上版本

官方網站:https://sites.google.com/site/araadrija

Email:amitava.chakravarty@gmail.com

聯絡地址:KOLKATA INDIA amitava.chakravarty@gmail.com

Simple Processor (Assembly)(圖1)-速報App

STRETCH YOUR IMAGINATION AND SKILL IN THE VIRTUAL WORLD OF PRIMITIVE PROCESSOR !!!

This is a simple hypothetical virtual processor built on a small number of instruction set.

You can write program in assembly like language and run it to test your program.

It has 4 general purpose registers A,B,C and D.

Instruction pointer(Program Counter) is denoted by PC.

It will display the register contents and PC value for each instruction executed.You can check the program output by inspecting the desired register value.

Instruction set consists of the following :

mov R1,R2 is [R1]<---[R2]

mov R1,N is [R1]<---N

add R1,R2 is [R1]<---[R1]+[R2]

add R1,N is [R1]<---[R1]+N

Simple Processor (Assembly)(圖2)-速報App

sub R1,R2 is [R1]<---[R1]-[R2]

sub R1,N is [R1]<---[R1]-N

mul R1,R2 is [R1]<---[R1]*[R2]

mul R1,N is [R1]<---[R1]*N

div R1,R2 is [R1]<---[R1]/[R2]

div R1,N is [R1]<---[R1]/N

jmp L is jump to location L

jzona L is jump to location L if [A]=0

jnzona is jump to location L if [A]!=0

jzonb is jump to location L if [B]=0

jnzonb is jump to location L if [B]!=0

Simple Processor (Assembly)(圖3)-速報App

jzonc is jump to location L if [C]=0

jnzonc is jump to location L if [C]!=0

jzond is jump to location L if [D]=0

jnzond is jump to location L if [D]!=0

hlt is stop

where R,R1,R2 are the any registers a,b,c or d

N is any number integer or floating point

L is the label

[R] means content of register R

You can write your own code and test it by running it.

You can stretch your imagination and extend your assembly programming logic in a constrained environment like this.

Simple Processor (Assembly)(圖4)-速報App

All these are *ABSOLUTELY FREE* ,*NO INAPP PURCHASES* and * NO ADS*.

This is very helpful for education purpose.

*** note : If there is any bug please report the bug to me through email.

Simple Processor (Assembly)(圖5)-速報App